I am very new with Contour (v.3.0.5) and Umbraco (4.11).
I have the form working and so far I can add the task to the workflow so that an email is fired. What I need is to add another task so that an email is fired and afterwards the form posts to another page where I can run a razor script and perform additional tasks (such as connecting to a web service and using some of the posted values).
When I add two tasks "Send an email" followed by "Post to a Url", the second task is ignored.
What is the way to send and email and then perform some additional tasks using Contour? Is it done programmatically somehow or can it be done with workflows?
I had no luck with the documentation. Any help is much appreciated
Ok I have discovered the option of creating our own Workflow type providers...
I created my new WorkFlow type based on the Email one and I'm extending it. I think that's the way forward, but someone is experienced is welcome to comment
Hey Nick, also note that these workflows will execute in the background... so the Post to a Url will not lead you to another url but will do the post in the background
So it's possible that it was actually posting? I was posting to a URL that was, at the time, only printing something on screen but that was showing up so I assumed it wasn't happening. In any case, I think extending the workflow seems more proper for advanced functionality like the one I'm adding now. Thanks Tim!
Is there a way to debug Contour? Or at least is there a log where I can see why some workflows fail to load?
I have created a number of workflows and two of them don't show up in the list. I am certain it is because of something missing from the config because the functionality depends on many external DLLs.
I can't begin to fix the problem, however, without knowing why the workflow fails to load. Any ideas?
Multiple tasks in the Workflow
Hi everyone,
I am very new with Contour (v.3.0.5) and Umbraco (4.11).
I have the form working and so far I can add the task to the workflow so that an email is fired.
What I need is to add another task so that an email is fired and afterwards the form posts to another page where I can run a razor script and perform additional tasks (such as connecting to a web service and using some of the posted values).
When I add two tasks "Send an email" followed by "Post to a Url", the second task is ignored.
What is the way to send and email and then perform some additional tasks using Contour?
Is it done programmatically somehow or can it be done with workflows?
I had no luck with the documentation.
Any help is much appreciated
Ok I have discovered the option of creating our own Workflow type providers...
I created my new WorkFlow type based on the Email one and I'm extending it. I think that's the way forward, but someone is experienced is welcome to comment
Comment author was deleted
Hey Nick, also note that these workflows will execute in the background... so the Post to a Url will not lead you to another url but will do the post in the background
So it's possible that it was actually posting?
I was posting to a URL that was, at the time, only printing something on screen but that was showing up so I assumed it wasn't happening.
In any case, I think extending the workflow seems more proper for advanced functionality like the one I'm adding now.
Thanks Tim!
Comment author was deleted
Ok also be sure to check out the docs :) http://our.umbraco.org/projects/umbraco-pro/contour/documentation
Hi Tim,
Is there a way to debug Contour? Or at least is there a log where I can see why some workflows fail to load?
I have created a number of workflows and two of them don't show up in the list. I am certain it is because of something missing from the config because the functionality depends on many external DLLs.
I can't begin to fix the problem, however, without knowing why the workflow fails to load.
Any ideas?
Many thanks
Comment author was deleted
They just don't show up in the dropdown? Try attaching to the process with visual studio (you need to have the site running localy)
I got it working!!
One final question. In the code behind of the workflow type I want to catch the value of a drop down that is populated by a text file.
If I do:
e.Record.RecordFields.ElementAt(4).Value.ValuesAsString()
I get the selected value which is an integer.
Is tere a way to return the text of that selected value?
Thanks in advance
is working on a reply...