# Workflow with Parameters after discard job

**URL:** <https://forum.knime.com/t/workflow-with-parameters-after-discard-job/33261>\
**Category:** KNIME Server\
**Created:** [May 27, 2021, 7:14am UTC](https://forum.knime.com/t/workflow-with-parameters-after-discard-job/33261 "2021-05-27T07:14:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim8200](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/t/779978/32.png) [@Tim8200](https://forum.knime.com/u/Tim8200)\
**Post date:** [May 27, 2021, 7:14am UTC](https://forum.knime.com/t/workflow-with-parameters-after-discard-job/33261/1 "2021-05-27T07:14:33Z")

</div>

Hello,

i use some workflows via links with predefined input parameters e.g  
[http://server/workflowtest&pm:input1=true&pm:input2=irgendwas&run&single](http://server/workflowtest&pm:input1=true&pm:input2=irgendwas&run&single)  
that works, but:

if the workflow is complete and the user clicks on discard  
the workflow jumps to the start. But the parameters get lost, result:  
[http://server/workflowtest&single](http://server/workflowtest&single)  
How can I prevent this?  
Greetings  
Tim

---

<div class="post-metadata">

**Author:** ![marvin\_kickuth](https://forum-cdn.knime.com/user_avatar/forum.knime.com/marvin_kickuth/32/24811_2.png) [@marvin\_kickuth](https://forum.knime.com/u/marvin_kickuth)\
**Post date:** [May 28, 2021, 7:49am UTC](https://forum.knime.com/t/workflow-with-parameters-after-discard-job/33261/2 "2021-05-28T07:49:43Z")

</div>

Hi Tim,

what sort of use case do you have in mind?  
I think this isn’t possible at the moment. However, you could create a final view that asks the user whether they want to jump back to the start (similar to this example: [Blackjack – KNIME Hub](https://hub.knime.com/knime/spaces/Examples/latest/50_Applications/50_BlackJack/01_BlackJack~LEjUvf79Y-VLFIf8))  
Using a loop you can then then control how the execution continues.

Would this work in your case?

Kind regards  
Marvin

---

<div class="post-metadata">

**Author:** ![Tim8200](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/t/779978/32.png) [@Tim8200](https://forum.knime.com/u/Tim8200)\
**Post date:** [June 8, 2021, 9:31am UTC](https://forum.knime.com/t/workflow-with-parameters-after-discard-job/33261/4 "2021-06-08T09:31:45Z")

</div>

Hello @marvin_kickuth  
the back button on the web portal does not work properly. Using the back button will end the complete workflow ☹

---

<div class="post-metadata">

**Author:** ![marvin\_kickuth](https://forum-cdn.knime.com/user_avatar/forum.knime.com/marvin_kickuth/32/24811_2.png) [@marvin\_kickuth](https://forum.knime.com/u/marvin_kickuth)\
**Post date:** [June 8, 2021, 11:04am UTC](https://forum.knime.com/t/workflow-with-parameters-after-discard-job/33261/5 "2021-06-08T11:04:25Z")

</div>

Hi Tim,

do you happen to have a small example workflow/procedure (with dummy data) that I can test here?  
It would help a lot if I can reproduce the error.

Kind regards  
Marvin

---

<div class="post-metadata">

**Author:** ![Tim8200](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/t/779978/32.png) [@Tim8200](https://forum.knime.com/u/Tim8200)\
**Post date:** [June 8, 2021, 12:05pm UTC](https://forum.knime.com/t/workflow-with-parameters-after-discard-job/33261/6 "2021-06-08T12:05:56Z")

</div>

Hello @marvin_kickuth,

see here…  
[Loop\_Webpportal.knwf](https://forum.knime.com/uploads/short-url/wIt7WievHWmKs1IBDHfcwifUNWb.knwf) (36.5 KB)  
Thanks…

---

<div class="post-metadata">

**Author:** ![marvin\_kickuth](https://forum-cdn.knime.com/user_avatar/forum.knime.com/marvin_kickuth/32/24811_2.png) [@marvin\_kickuth](https://forum.knime.com/u/marvin_kickuth)\
**Post date:** [June 8, 2021, 3:36pm UTC](https://forum.knime.com/t/workflow-with-parameters-after-discard-job/33261/7 "2021-06-08T15:36:25Z")

</div>

Ah…  
Turns out we don’t save any intermediate state of loop iterations, i.e. the back button would try to step right outside the loop…  
The fastest workaround would be to add some component/WebPortal page in front of the loop, which it can jump back to.  
I don’t think there is a nice workaround here, but we have new features almost out that solve this entire problem.

Kind regards  
Marvin

---

<div class="post-metadata">

**Author:** ![Tim8200](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/t/779978/32.png) [@Tim8200](https://forum.knime.com/u/Tim8200)\
**Post date:** [June 9, 2021, 10:31am UTC](https://forum.knime.com/t/workflow-with-parameters-after-discard-job/33261/8 "2021-06-09T10:31:02Z")

</div>

Okay,  
i’ve added an additional component to configure the parameters.  
So i don’t need the loop and direct link anymore until the new features are available.

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [June 16, 2021, 10:31am UTC](https://forum.knime.com/t/workflow-with-parameters-after-discard-job/33261/9 "2021-06-16T10:31:13Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
