Workflow Soluiton

 View Only
  • 1.  delete cookie and restart workflow session

    Posted May 22, 2015 02:44 PM

    thru myworkflow, there are forms which are populated by the end user. i have a 'start over' button which basically loops back to the initial form. however, the data is saved in a cookie. when the user advances to the forms that were filled prior, the information still resides. how can i delete the cookie for this so that the slate is wiped clean?

    could i force all data to be written to a consistent/persisten cookie name so that i can remove it by 'clear cookie' component? the cookie name is dynamic and changes constantly during the session. i would prefer to have the ability to remove it when needed.

     

    essentially, i would like to clear all data related to the current session, and restart it from the top. possible?

     

    any advice is greatly appreciated!



  • 2.  RE: delete cookie and restart workflow session
    Best Answer

    Posted May 29, 2015 11:41 AM

    Hello upioneer - this data isn't handled with cookies, it's persistent data that is flowing along the lines of your workflow.  One simple way to prevent this is to move from the "start over" form to the "initial form" without using any lines.  Use a "Hanging Path Trigger by Path" and configure it to catch the "Start Over" path you're using.

    2015-05-29_9-39-04.png

    A better way, however, is to utilize the Initialize Data component.  Typically all your variables should be declared/created in a component such as the Initialize Data component anyway, and by looping back around to this component at the "Start Over" point, the variable values will be reset as expected.

    Another option is to use the "Restart Dialog at End" on the Publishing tab, but this will always restart the dialog when the workflow process ends.  

    2015-05-29_9-42-25.png

    There are lots of options; let me know if none of these work for you and why they don't work, and I'm sure we can find another way for you.