Zum Hauptinhalt gehen

Workflow designer - how to comment out / disable part of the code

Kommentare

4 Kommentare

  • Permanently deleted user
    Frank,

     

    Do you mean you want to disable just a portion of a workflow?  Just add a 'Comment Out' Activity (it's under the modelling section of the toolbox) and drag any other activities that you want to temporarily disable into the comment out activity.

     

    Peter.
    0
  • Tom Neer
    Frank,

     

    As Peter mentioned, there is a "Comment" module provided in the workflow. Another alternative is to create a boolean variable, which I call "debug". Set it to True or False depending on the state of your code. Then add If statements that will execute code based on the value of debug. I do this during testing to comment out code that executes feature creation, edits, deletes while testing other code.

     

    Tom
    0
  • Permanently deleted user
    Thanks guys for the responses.

     

    I was looking in wrong place! I like the sugestion using a boolean variable, that can be handy.

     

    Thanks again.
    0
  • John Nerge
    If you build your workflow in a flowchart, then you can easily pass over one or more activities just by skipping over them when connecting one activity to the next. I write virtually all of my workflows in flowcharts for exactly this reason. It also works great for testing alternative methods to get the same result to see which one runs faster.
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.