Hi there
@Peter GrundlerSorry, I see I can't reply since it's not an open-ended thread.
So all the JOBS in the workflow is set to generate at activation. Although, I have tried Runtime without luck.
It just doesn't make much sense to not complete all the steps of JOB 1 before moving on to JOB 2. As far as I can tell - doing it in POST is the recommended way of getting SQL returns.
And yes - the next SQL job in the workflow run the following in PROCESS:
:PSET &TEST# = GET_VAR(VARA.SQL.VARIABLE, "TOTAL")
:PRINT "************* &TEST#"
SELECT [id] FROM [ssis_automic_test].[dbo].[MOCK_DATA] where [id] = &TEST#;
So the first iteration it would return a blank for &TEST#:
2022-02-02 07:53:12 - U00020206 Variable '&TEST#' was stored with value ' '.
2022-02-02 07:53:12 - U00020206 Variable '&VAR2#' was stored with value '14'.
And the second time around it would return it with the value set in interation 1:
2022-02-02 07:54:32 - U00020206 Variable '&TEST#' was stored with value '6'.
2022-02-02 07:54:32 - U00020206 Variable '&VAR2#' was stored with value '14'.
But if look at the activation times of the JOBS, everything is starting at the same time - which again I don't think is correct since there is a logical flow + dependency on the preceding tasks to end OK - there is even post-conditions on some of them.

