Copied to clipboard

Flag this post as spam?

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


  • Bear 40 posts 129 karma points
    Apr 10, 2013 @ 15:36
    Bear
    0

    WorkflowExecutionStatus.Failed has no effect

    If you do;

    public override WorkflowExecutionStatus Execute(Record record, RecordEventArgs e) {
    return WorkflowExecutionStatus.Failed;
    }

     

    Or

    public override WorkflowExecutionStatus Execute(Record record, RecordEventArgs e) {
    return WorkflowExecutionStatus.Cancelled;
    }

     

    They don't have any effect whatsoever, all form data is recorded and an entry is made and if you have a redirect, the form will continue to the redirect.

    I noticed that this question was asked sometime ago, however it does not have an answer (except for using session). 

    How do I stop the workflow entirely? 


  • marcelh 171 posts 471 karma points
    Feb 06, 2018 @ 18:25
    marcelh
    0

    Sorry for kicking this, but I ran into this post today and wondered for a while already why the WorkFlowExecutionStatus has no influence on the workflow being executed.

    I would expect that Cancelled would mean that the current workflow needs to cancelled, resulting in that all the subsequent workflow tasks are not executed. Failed would mean that the current workflow task has failed, but all subsequent tasks are being executed.

    Is that correct? And is this missing in the workflow implementation?

  • pjz 9 posts 102 karma points
    Dec 19, 2018 @ 20:40
    pjz
    0

    I ran into the same issue. Does anyone have the answers? Thanks.

Please Sign in or register to post replies

Write your reply to:

Draft