<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">
<div dir="auto">Hi Philippe,
<div dir="auto"><br /></div>
<div dir="auto">Thanks for your reply.</div>
<div dir="auto"><br /></div>
<div dir="auto">I think I need some more help understanding your suggestions. <span style="caret-color: rgb(39, 39, 40);">I'm still learning Seaside and have only the code comments and documentation + books to go on. </span></div>
<div dir="auto"><br /></div>
<div dir="auto">Can you elaborate what you mean by the following?</div>
<div dir="auto"><br /></div>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class="spark_indent">
<div dir="auto"><i>Override "the right methods" and add a check to the flag. Just make sure you don't backtrack this flag.</i></div>
</blockquote>
<div dir="auto"><br /></div>
<div dir="auto"><br /></div>
<div dir="auto">What do you mean by 'the right methods'?</div>
<div dir="auto">And can you explain to me how I can prevent backtracking? Unfortunately I still haven't been able to find a good explanation for that.</div>
<div dir="auto"><br /></div>
<div dir="auto">And perhaps you can tell me which version of Seaside still had the #isolate: behavior? That way I can investigate myself.</div>
<div dir="auto"><br /></div>
<div dir="auto">The transactional behavior I want to isolate represents very high business value, so I need to make absolutely certain that it cannot be performed more than once.</div>
<div dir="auto"><br /></div>
</div>
</div>
<div name="messageSignatureSection"><br />
<div dir="auto">Cheers,
<div>Jonathan<br /></div>
</div>
</div>
<div name="messageReplySection">On 17 Nov 2019, 09:30 +0100, Philippe Marschall <philippe.marschall@gmail.com>, wrote:<br />
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #1abc9c;">Hello Jonathan<br />
<br />
Implementing #isolate: may not be the ideal starter issue but maybe<br />
you can solve your issue without implementing isolate.<br />
I have two ideas on top of my head, maybe they work:<br />
- A boolean completed flag in your task class. On completion of the<br />
task set the flag to true. Override "the right methods" and add a<br />
check to the flag. Just make sure you don't backtrack this flag.<br />
- On completion of the task add a decoration that prevents is from<br />
being executed again, or simply renders "the task is expired". I know<br />
this is not very specific.<br />
<br />
I hope these are enough to get you started.<br />
<br />
Cheers<br />
Philippe<br />
<br />
On Fri, Nov 15, 2019 at 2:26 PM jvalteren@objectguild.com<br />
<jvalteren@objectguild.com> wrote:<br />
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #e67e22;"><br />
Hi all,<br />
<br />
I found this post from 22/06/2015 using forum.world.st, and I'm having the<br />
same problem. I (think I) need the #isolate: method's behavior to prevent<br />
backtracking a WATask that has a transactional step in its flow.<br />
<br />
All the documentation I could find mention the #isolate: method. After<br />
searching for quite a bit, I haven't found a clear example of how to work<br />
around this in a different way.<br />
<br />
@Philippe: Unfortunately, I do not understand what you are saying here:<br />
<br />
<br />
Philippe Marschall wrote<br />
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #3498db;">A flag that's not backtracked. If you want to get fancy you can also<br />
store the last not expired continuation / state snapshot (again not<br />
backtracked) and redirect to this.<br /></blockquote>
<br />
Can anyone help me with this? I have the feeling that a possible solution<br />
might be found in overriding the #states method, but I don't understand<br />
enough of how that should work. I'm missing clear examples and/or<br />
documentation here.<br />
<br />
Thanks in advance!<br />
<br />
Best,<br />
Jonathan<br />
<br />
<br />
<br />
--<br />
Sent from: http://forum.world.st/Seaside-General-f86180.html<br />
_______________________________________________<br />
seaside mailing list<br />
seaside@lists.squeakfoundation.org<br />
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br /></blockquote>
_______________________________________________<br />
seaside mailing list<br />
seaside@lists.squeakfoundation.org<br />
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br /></blockquote>
</div>
</body>
</html>