I get the following message in a workflow (Did not add dependency because triggered blocks cannot have explicit connections.) and cannot connect a javascript that triggers an API.
Therefore, the workflow does not run completely through and skips the last two processes.
As tooltip, there is not explicit connections between billbee_array and billbee_shipment_post.
you should drag the gray point at the right top of billbee_array to billbee_shipment_post, this will connect them in the same flow.
As far as I understand it now, you can't connect any javascript that triggers an API. But how do I get this solved then? Because the trigger does not trigger the next step.
I can find absolutely no way to make this work. My biggest problem with the code was that I have to run the api asynchronously through a loop. Is it possible that something like this doesn't work in the workflows at all?
I have a SQL query that looks like this:
SELECT BillBeeOrderId, ShippingProvider, TrackingNo
FROM billbee_order
WHERE ShippingDataTransferredAt IS NULL AND TrackingNo IS NOT NULL
If you are using the API node why are you calling the node in the JavaScript? If it is for a loop to go through each set of data, you probably want to make a loop node using the code block. The loop would process all of the rows from the block and send the payloads to the Billbee API resource.
To be clear, the code block is getting all of the data ready, and the API resource is sending all of the data as a single payload each time, correct?
If so, the workflow design would be (trigger)-->(code)-->(loop with "code" as loop input and API resource as the action)
I have a couple of workflows that loop from an array built in a code block so I'm fairly certain the explicitness being thrown as an error is your self-reference to the query node in you code block.
I don't know the specifics of your API calls, but the loop block I'm using what looks like the individual payload data by row; the loop executes for each row using the additionalScope structure you provided.
The {{value.property}} syntax is what you'd use for URL params/JSON body/URL Form Encoded payloads.
I ran into this same error message. I realized I couldn't do what I was trying to do so I deleted my Javascript block and tried to reconnect my SQL block back the way things had been. And I got this error. I tried deploying. I tried making silly changes to trigger some sort of rethink. Nothing worked until I created a fresh SQL query, copied the settings from the old one. Then I was able to reattach things and delete the old query block.
So there are three problems:
When everything is working correctly this is confusing.
That the error message appears at the top of the screen for about 2 seconds is NOT helpful!
The IDE state gets corrupted and this error is triggered when the error state, in fact, no longer exists. That is a big problem.
Thanks for this feedback, I'll pass it along to the team. There's an open request for better debugging features in the Workflow editor that I can report back here on. I can certainly imagine how it would be helpful to have error messages be more accessible and it's important that they be consistent.
Glad yall were able to figure this out for the rest and thank you for sharing your solutions here!