Copied to clipboard

Flag this post as spam?

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


  • Robby Cowell 20 posts 103 karma points
    Sep 11, 2014 @ 15:17
    Robby Cowell
    1

    'Form Open' workflow event not working

    I've created this very simple workflow just to test Contours's workflow functionality:

    public class PopulateNewsletter : WorkflowType
    {
        public PopulateNewsletter()
        {
            this.Name = "The newsletter signup workflow";
            this.Id = new Guid("8e651415-182e-4358-8e4d-54c61ce70855");
            this.Description =
                "This will populate the email address";
        }
    
        public override List<Exception> ValidateSettings()
        {
            return new List<Exception>();
        }
    
        public override WorkflowExecutionStatus Execute(Record record, RecordEventArgs e)
        {
            return WorkflowExecutionStatus.Completed;
        }
    }
    

    In the workflows section of my Newsletter form I added my newly created workflow to the 'When the form has been Opened' stage.

    However when I open the page that the form renders on, the workflow is not executed. In addition to this, the workflow is executing after I have submitted the form, despite the 'When the form has been Submitted' stage being dissociated with a workflow type.

    So it seems both the 'When the form has been Opened' and the 'When the form has been Submitted' stages are doing the same thing. I've seen other posters on this forum having a similar issue, which indicates there's a potential bug here.

    We're using Umbraco 7.1.6 and Contour 3.0.21, using .Net 4.5.

    Does anyone have a solution for this? If not, could someone from Contour investigate this? Our project deadline is fast approaching and this is one of the last pieces of functionality we need, so any help on this issue would be greatly appreciated.

  • marcelh 171 posts 471 karma points
    Oct 20, 2014 @ 13:54
    marcelh
    0

    Hey! Just bumped into this same issue. Did you get this fixed?

  • Martin Lingstuyl 202 posts 379 karma points
    Oct 20, 2014 @ 19:30
    Martin Lingstuyl
    0

    Unfortunately, there is no solution currently, except a workaround posted here: http://our.umbraco.org/forum/umbraco-pro/contour/52962-Opened-Event-of-Simple-Custom-Workflow-Is-Not-Working

    Please vote up our bugreport on codeplex. Hoping HQ will fix this issue quickly.

  • Martin Lingstuyl 202 posts 379 karma points
    Oct 28, 2014 @ 12:19
    Martin Lingstuyl
    0

    Tim fixed it!

    It's coming out in version 3.0.22.

    http://issues.umbraco.org/issue/CON-593

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 28, 2014 @ 12:35
    Tim Geyssens
    0

    Yup fix is coming in 3.022 that will be out in a couple of days

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 31, 2014 @ 09:29
    Tim Geyssens
    0
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies