Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nick 101 posts 123 karma points
    Feb 11, 2013 @ 16:12
    Nick
    0

    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

  • Nick 101 posts 123 karma points
    Feb 11, 2013 @ 18:13
    Nick
    0

    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

    Feb 12, 2013 @ 09:35

    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

  • Nick 101 posts 123 karma points
    Feb 12, 2013 @ 10:36
    Nick
    0

    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

    Feb 12, 2013 @ 10:40

    Ok also be sure to check out the docs :) http://our.umbraco.org/projects/umbraco-pro/contour/documentation

  • Nick 101 posts 123 karma points
    Feb 13, 2013 @ 12:32
    Nick
    0

    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

    Feb 13, 2013 @ 15:01

    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)

  • Nick 101 posts 123 karma points
    Feb 13, 2013 @ 18:34
    Nick
    0

    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

     

Please Sign in or register to post replies

Write your reply to:

Draft