Have the following issue.
I have an application where I want to create a batch, that consist of a user specified amount of labnumbers (each a individual thing) and reference a reseller on both the batch and the individual labnumbers.
1 batch consist of
x amount of labnumbers
each labnumber belongs to a reseller y and a distributor z
batch belongs to reseller y and distributor z
I have created a database for batches, labnumbers, and resellers
I can create each of these individually and link them up.
I have created a form that takes the user input amount of kits and searches up the reseller.
When the user has completed the form and pressed the button “create batch”, I want to make the workflow “create batch” run the workflow “create kit” X amounts of time.
Could find out how to do this so tried the following:
Start the workflow create a batch, set what organisation the batch belongs to. Add the amount of labnumbers the user wants to the batch. Create a serialised number for the batch.
Then i triggerd the custom workflow create a labnumber 1 - not sure what workflow thing to put in though.
Then I search up the last batch, and decrease the labnumbers wanted by 1.
Then I check that the wanted lab number is more than 0, and only then run “create labnumber 2” which has the same process as “create labnumber 1”. If not ran it should exit the workflow, will redirect to a specific page (not setup yet).
This will not run. I get the following error: Sorry, we ran into a temporary bug and can’t complete your request. We’ll fix it as soon as we can; please try again in a bit!
I do not think it has anything to do with a temporary bug, but rather that I possibly have created a endless loop. I really hope there is something really obvious that I have missed or overlooked, and appreciate any help in solving this.